using System;

namespace codeparser.net.Exceptions
{
    /// <summary>
    /// Is thrown when an invalid tag nesting is encountered.
    /// </summary>
    public class InvalidTagNestingException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="InvalidTagNestingException"/> class.
        /// </summary>
        public InvalidTagNestingException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="InvalidTagNestingException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public InvalidTagNestingException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="InvalidTagNestingException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="innerException">The inner exception.</param>
        public InvalidTagNestingException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}